<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');

/**
 * TYPOlight webCMS
 * Copyright (C) 2005 Leo Feyer
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program. If not, please visit the Free
 * Software Foundation website at http://www.gnu.org/licenses/.
 *
 * PHP version 5
 * @copyright  Psitrax Websolutions 
 * @author     Christoph Wiechert <wio@psitrax.de> 
 * @package    CeFlash 
 * @license    LGPL 
 * @filesource
 */


// Palette
$GLOBALS['TL_DCA']['tl_content']['palettes']['ce_flash'] = '{type_legend},type;{flash_legend},ce_flash_movie,ce_flash_size;{flparams_legend},ce_flash_params,ce_flash_vars;{text_legend},ce_flash_text,addImage;{protected_legend:hide},guests,protected;{expert_legend:hide},space,cssID';


// Fileds
$GLOBALS['TL_DCA']['tl_content']['fields']['ce_flash_movie'] = array(
	'label'         => &$GLOBALS['TL_LANG']['tl_content']['ce_flash_movie'],
	'exclude'       => true,
	'inputType'     => 'fileTree',
	'eval'          => array('fieldType'=>'radio', 'files'=>true, 'filesOnly'=>true, 'extensions'=>'swf', 'mandatory'=>true)
);
$GLOBALS['TL_DCA']['tl_content']['fields']['ce_flash_size'] = array(
	'label'			=> &$GLOBALS['TL_LANG']['tl_content']['ce_flash_size'],
	'exclude'		=> true,
	'inputType'		=> 'text',
	'default'		=> '200',
	'eval'			=> array('mandatory'=>true,'rgxp'=>'digit','multiple'=>true,'size'=>2)
);
$GLOBALS['TL_DCA']['tl_content']['fields']['ce_flash_params'] = array(
	'label'			=> &$GLOBALS['TL_LANG']['tl_content']['ce_flash_params'],
	'exclude'		=> true,
	'inputType'		=> 'multitextWizard',
	'eval'			=> array('columns' => 2,'labels'=>array(&$GLOBALS['TL_LANG']['tl_content']['ce_flash_params_param'],&$GLOBALS['TL_LANG']['tl_content']['ce_flash_params_value']))
);
$GLOBALS['TL_DCA']['tl_content']['fields']['ce_flash_vars'] = array(
	'label'			=> &$GLOBALS['TL_LANG']['tl_content']['ce_flash_vars'],
	'exclude'		=> true,
	'inputType'		=> 'multitextWizard',
	'eval'			=> array('columns' => 2,'labels'=>array(&$GLOBALS['TL_LANG']['tl_content']['ce_flash_vars_var'],&$GLOBALS['TL_LANG']['tl_content']['ce_flash_vars_value']))
);
$GLOBALS['TL_DCA']['tl_content']['fields']['ce_flash_text'] = array(
	'label'                   => &$GLOBALS['TL_LANG']['tl_content']['ce_flash_text'],
	'exclude'                 => true,
	'inputType'               => 'textarea',
	'eval'                    => array('rte'=>'tinyMCE', 'helpwizard'=>true),
	'explanation'             => 'insertTags'
);

?>
